package com.caifu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.caifu.pojo.CDevice;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 设备信息表 Mapper 接口
 * </p>
 *
 * @author tww
 * @since 2020-12-10
 */
public interface CDeviceMapper extends BaseMapper<CDevice> {

    List<Map<String, Object>> listDevice(Map map);

    List<Map<String, Object>> listOrgDevice(Map map);

    List<Map<String, Object>> listDeptDevice(Map map);

    int countDeviceById(@Param("deviceUid") String deviceUid, @Param("deviceId") String deviceId);

    int countDeviceByDept(Map map);

    int countDeviceByOrg(Map map);

    int countDevice(Map map);

    List<Map<String, Object>> getUserList(Map map);

    int countUserList(Map map);
}
